﻿using FluentValidation;
using Mes.Application.DTO.Inputs.WorkOrders;

namespace Mes.Application.Web.Validators.WorkOrders
{
    public class EndingJobInputValidator : AbstractValidator<EndingJobInput>
    {
        public EndingJobInputValidator()
        {
            RuleFor(x => x.Wo_Id).Length(1, 40).WithMessage("工单编号长度必须在1到40之间");
            RuleFor(x => x.Oper_Id).Length(1, 40).WithMessage("操作编号长度必须在1到40之间");
        }
    }
}
